﻿/*
 * Last review by   : Yaser
 * Last review date : JUL-25-09 
 */

namespace ERP.Framework.Components.SerializationHelper.Interfaces
{
    /// <summary>
    /// Serializing manager methods
    /// </summary>
    public interface ISerializingManager
    {
        /// <summary>
        /// Serialize object
        /// </summary>
        /// <param name="obj">object to serialize</param>
        /// <returns>serialized object as string</returns>
        string SerializeObject(object obj);

        /// <summary>
        /// Deserialize string to object
        /// </summary>
        /// <typeparam name="T">object type</typeparam>
        /// <param name="serializedText">serialization string</param>
        /// <returns>object</returns>
        object DeserializeObject<T>(string serializedText);
    }
}
